package com.ttmall.common.pojo;

import java.util.List;
import java.util.Objects;

/**
 * Created by tianyi on 2018/1/13.
 */
public class EasyUIDataGridResult {

    private long total;
    private List<?> rows;

    public static EasyUIDataGridResult build(long total, List<?> rows) {
        EasyUIDataGridResult result = new EasyUIDataGridResult();
        result.setRows(rows);
        result.setTotal(total);
        return result;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }
}
